package com.gamiao.gwt.demo.useSpring.client;

import com.google.gwt.user.client.ui.ChangeListener;
import com.google.gwt.user.client.ui.ChangeListenerCollection;
import com.google.gwt.user.client.ui.SourcesChangeEvents;
import com.google.gwt.user.client.ui.Widget;

public class UserSaveSucceedEventListenerCollection extends
		ChangeListenerCollection implements ChangeListener {

	private final Widget owner;

	public UserSaveSucceedEventListenerCollection(Widget owner,
			SourcesChangeEvents delegatedTo) {
		this.owner = owner;
		delegatedTo.removeChangeListener(this);
		delegatedTo.addChangeListener(this);
	}

	public void onChange(Widget sender) {
		super.fireChange(owner);
	}
}
